package com.example.rmation.mapper;

import com.example.rmation.model.entity.Message;
import com.example.rmation.model.request.AllMessageRequest;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MessageMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Message record);

    int insertSelective(Message record);

    Message selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Message record);

    int updateByPrimaryKey(Message record);

    List<AllMessageRequest> studentMessageAll();

    List<AllMessageRequest> studentMessageLike(String name);

    List<AllMessageRequest> messageOneself(String username);
}